registerTests([
function ElementAt_Test_0()
{
	var myArray = [1, 2, 3];
	var result = myArray.ElementAt(2);
	
	Assert.areEqual(result, 3, "Expected 3 but got " + result);
},
function ElementAt_Test_1()
{
	var myArray = [1, 2, 3];
	
	Assert.throwsException(function(){myArray.ElementAt(4);}, "Index was out of range but exception was not thrown");
	Assert.throwsException(function(){myArray.ElementAt(-1);}, "Index was out of range but exception was not thrown");
}
]);